
<#if classifys??>
		<div class="classify">
				<div class="all"><a href="${contextPath}/search.do">全部分类</a></div>
				<ul id="classifymenu">
				<#list classifys as c>
				<#if c.parentid == 0>
					<li><a href="${contextPath}/search.do?classifyid=${c.id}">${c.classifyName}</a>
						<#assign first=true>
              	<#list classifys as c2>
              		<#if c2.parentid==c.id>
              		    <#if first><ul><#assign first=false></#if>
							<li><a href="${contextPath}/search.do?classifyid=${c2.id}">${c2.classifyName}</a></li>
	                </#if>
                </#list>
                <#if !first></ul></#if>
					</li>
					</#if>
          </#list>
				</ul>
			</div>
</#if>
<script type="text/javascript">
	$("#classifymenu>li").hover(function(){
		$(this).addClass("current");
	},function(){
		$(this).removeClass("current");
	});
</script>